let pm = {
    state: {
        bool: false,
        editableTabsValue: '3',
        editableTabs: [
            // {
            //     title: '已维修管理',
            //     name: '1',
            //     content: ""
            // }, {
            //     title: '未维修管理',
            //     name: '2',
            //     content: 'Tab 2 content'
            // },
            //  {
            //     title: '员工列表',
            //     name: '3',
            //     content: "Tab 3 content"
            // }
        ],
        tabIndex: 3
    },
    getters: {

    },
    mutations: {
        Add_Tab(state, type) {
           
            let newTabName = ++state.tabIndex + "";
                state.editableTabs.push({
                    title: type,
                    name: newTabName,
                    content: 'New Tab content'
                });
            state.editableTabsValue = newTabName;
        },
        APP_UPDATA_BOOL(state) {
            state.bool = !state.bool
        }
    },
    actions: {

    },
}
export default pm